﻿@model GameSchoolApplication.Models.Exam

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Próf</legend>

        @Html.HiddenFor(m => m.examID);

        <div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.exDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.exDesc)
            @Html.ValidationMessageFor(model => model.exDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.gradeValue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.gradeValue)
            @Html.ValidationMessageFor(model => model.gradeValue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.lvlID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lvlID)
            @Html.ValidationMessageFor(model => model.lvlID)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

